<?php

use Illuminate\Database\Seeder;

class StoreTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
        $arr=[];
        for($i=1;$i<=130;$i++){

        	$tmp=[];
        	$tmp['sendprice']=rand(1,10);
        	$tmp['upsendprice']=rand(10,30);
        	$tmp['storename']='店名'.$i;
        	$tmp['cooktime']=rand(18,40);
        	$tmp['storepic']=($i+1).'.jpg';
            $tmp['worktime']='0'.rand(5,9).':00-'.rand(17,22).':00';
            $s = array('营业中','已打烊','装修中');
            $tmp['storestatus']=$s[rand(0,2)];
            $tmp['storeaddress']=str_random(50);
            $tmp['store_notice']='我是商家'.$i;
        	$arr[]=$tmp;
        }

        DB::table('store')->insert($arr);
    }
}
